﻿@model  ClarizenGadget.Models.CreateRisk
@{
    Layout = "/Views/Shared/CreateLayout.cshtml";
    ViewBag.Title = "Create Risk";
}

<div class="Risk">
<div class="HeaderContainer">


    <div class="TaskHeader">
        <img src="@(Logic.Constants.CurrentUrl)/Images/icons/ico-risk-32px.png" class="Icon TaskIcon"/>
        <div class="Property Name">
            @Html.TextBox("Title", "", new { Class = "FormInput" })
            <span class="Mandatory">*</span>
        </div>
    </div>
</div>
   
   <div class="ContentContainer">
    <div class="Row">
        <div class="Property Right">
            <div class="Label">Assigned to</div>
            <div><select  name="AssignedToID" id="AssignedTo" ></select></div>
        </div>
        <div class="Property">
            <div class="Label">Due date</div>
            <div><input type="text" name="DueDate" class="Date"/></div>
        </div>

        <div class="Property">
            <div class="Label">Originated from</div>
            <div><select name="OriginatedFromID" id="OriginatedFromID">
            <option value="">@Logic.Constants.DEFAULT_TASK_CONTAINER</option></select></div>
        </div>
    </div>
    <div class="Row">
        <div class="Property Right">
            <div class="Label">Importance</div>
            <div>
                @Html.DropDownList("ImportanceID", Model.Importance.Select(s => new SelectListItem { Text = s.Name, Value = s.ID.Value, Selected = s.Name == Logic.Constants.DefaultImportance }))
             </div>
        </div>
        <div class="Property">
            <div class="Label">Priority</div>
            <div><input type="text" name="Priority" class="Numeric"/></div>
        </div>

         <div class="Property Right">
            <div><input type="checkbox" id="ReportedbyCustomer" value="true" name="ReportedbyCustomer"/><label for="ReportedbyCustomer">Reprted by customer</label></div>
            <div><input type="checkbox" id="Mandatory" value="true" name="Mandatory"/><label for="Mandatory">Mandatory</label></div>
        </div>
    </div>
    <div class="Row">
        <div class="Property">
            <div class="Label">% Probability</div>
            <div><input type="text" name="PercentProbability" class="Numeric"/></div>
        </div>
        <div class="Property">
            <div class="Label">Impact</div>
            <div><input type="text" name="Impact" class="Numeric"/></div>
        </div>

        <div class="Property">
            <div class="Label">Trigger date</div>
            <div><input type="text" name="TriggerDate" class="Date"/></div>
        </div>

    </div>
    <div class="Row">
       <div class="Property">
            <div class="Label">Risk Rate</div>
            <div><input type="text" name="RiskRate" class="Numeric"/></div>
        </div>
        <div class="Property">
            <div class="Label">Risk Strategy</div>
            <div>@Html.DropDownList("RiskStateID", Model.RiskState.Select(s => new SelectListItem { Text = s.Name, Value = s.ID.Value }))</div>
        </div>
    </div>
    

    <div class="Row">
        <div class="Label">Description / Trigger Description</div>
        <textarea  id="Description" name="Description" rows="5" cols="20" ></textarea>
    </div>
    <div class="Row">
        <div class="Label">Response Plan Description</div>
        <textarea  id="MitigationPlan" name="MitigationPlan" rows="5" cols="20" ></textarea>
    </div>
    <div class="Row">
        <div class="Label">Contingency Plan</div>
        <textarea  id="ContingencyPlan" name="ContingencyPlan" rows="5" cols="20" ></textarea>
    </div>
    </div>
</div>
